package mrsimulator;

import java.util.Collection;
import java.util.LinkedList;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: codefish
 * Date: 11/7/12
 * Time: 10:36 PM
 * To change this template use File | Settings | File Templates.
 */
public class TaskTrackerAction {
    private List<Task> mapTaskToLaunch = new LinkedList<Task>();
    private List<Task> reduceTaskToLaunch = new LinkedList<Task>();
    private List<Task> reduceTaskToNotify = new LinkedList<Task>();

    public List<Task> getMapTaskToLaunch() {
        return mapTaskToLaunch;
    }

    public List<Task> getReduceTaskToLaunch() {
        return reduceTaskToLaunch;
    }

    public void addMapTask(Task map){
        this.mapTaskToLaunch.add(map);
    }
    public void addReduceTask(Task map){
        this.reduceTaskToLaunch.add(map);
    }

    public void addReduceToNotify(Task reduce){
        this.reduceTaskToNotify.add(reduce);
    }

    public List<Task> getReduceTaskToNotify(){
        return this.reduceTaskToNotify;
    }

    public void addMapTasks(List<Task> mapTaskToLaunch){
        this.mapTaskToLaunch = mapTaskToLaunch;
    }

    public void addReduceTasks(List<Task> reduceTaskToLaunch){
        this.reduceTaskToLaunch = reduceTaskToLaunch;
    }

    public void addReduceTasksToNotify(List<Task> reduceToNotify){
        this.reduceTaskToNotify = reduceToNotify;
    }
}
